package com.fyt.result;

/**
 * @author ：fyt
 * @Date: 2024/4/13 18:13
 */
public enum ResultCodeEnum {
    SUCCESS(200, "返回成功"),
    Bad_Request(400, "客户端请求中的语法错误"),
    Forbidden(403, "没有权限"),
    Internal_Server_Error(500, "服务器内部错误"),
    Not_Found(404, "无法找到资源"),;
    private final Integer code;
    private final String msg;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.msg = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.msg;
    }

}